package com.lagou.homework.service;

import com.lagou.homework.Dao.UserDao;
import com.lagou.homework.Factory.UserDaoFactory;
import com.lagou.homework.model.User;

public class UserService {


    private UserDao userDao;
    public UserService(){
        this.userDao= UserDaoFactory.getUserDao();
    }

    //自定义成员方法实现根据指定的User对象，调用dao层数据实现登录功能
    public User userLoginService(User user){
        return userDao.userLogin(user);
    }
}
